package com.project.im.web.service;

import com.project.im.app.dto.WebUserDetails;
import com.project.im.common.util.SecurityUtils;
import com.project.im.web.mapstruct.WebUserConverter;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class WebUserInfoService {

    private final WebUserConverter webUserConverter;

    public WebUserDetails getUserInfo() {
        return SecurityUtils.getAuthentication(WebUserDetails.class);
    }

}
